package com.base.common.persistent.dao;

import com.base.common.persistent.model.InspectionTicket;
import org.apache.ibatis.annotations.Param;


/**
 * 巡查工单dao
 * 
 * @author Kevin Colin
 * @datetime 2015年9月6日上午11:36:17
 * 
 */
public interface InspectionTicketMapper {
	
	/**
	 * 添加巡查工单
	 * 
	 * @param {@link InspectionTicket inspectionTicket}
	 * @return
	 */
	int addInspectionTicket(InspectionTicket inspectionTicket);
	
	/**
	 * 根据工单code查询工单
	 * 
	 * @param code
	 * @return
	 */
	InspectionTicket queryInspectionTicketByCode(@Param(value = "code") String code);

	/**
	 * 查询最新巡查工单号
	 * 
	 * @return
	 */
	String queryLastCode();
}
